Copies a block of memory.
void MPBlockCopy (
LogicalAddress source,
LogicalAddress destination,
ByteCount size);
source
A pointer of type LogicalAddress
that specifies the starting address of the memory block you want to copy.
destination
A pointer of type LogicalAddress
that specifies the location to which you want to copy the memory block.
size
A value of type ByteCount
that specifies the number of bytes to copy.
DISCUSSION
As with all shared memory, your application must synchronize access to the memory blocks to avoid data corruption. MPBlockCopy
ensures the copying stays within the bounds of the area specified by size
, but the calling task can be preempted during the copying process.